package com.fjec.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 016.购物车表
 * </p>
 *
 * @author admin
 * @since 2020-09-17
 */
@Data
@TableName("biz_shopping_cart")
public class BizShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 用户Id
     */
    @TableField("UserId")
    private Long userId;

    /**
     * 商户类型 1=个人
     * 2=果农
     * 3=分拣厂
     * 4=农资厂
     * 5=包装物厂
     * 6=采购商
     */
    @TableField("BusiType")
    private Integer busiType;

    /**
     * 商铺Id
     */
    @TableField("BusiId")
    private Long busiId;

    /**
     * 商品SkuId
     */
    @TableField("SkuId")
    private Long skuId;

    /**
     * 商品数量
     */
    @TableField("SkuNum")
    private Integer skuNum;

    /**
     * 备注信息
     */
    @TableField("Remark")
    private String remark;

    /**
     * 删除标记
     */
    @TableField("DelFlag")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;
    /**
     * 更新版本号
     */
    @Version
    @TableField("UpdateVer")
    private Integer updateVer;

    @Override
    public String toString() {
        return "BizShoppingCart{" +
                "id=" + id +
                ", userId=" + userId +
                ", busiType=" + busiType +
                ", busiId=" + busiId +
                ", skuId=" + skuId +
                ", skuNum=" + skuNum +
                ", remark=" + remark +
                ", delFlag=" + delFlag +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", updateVer=" + updateVer +
                "}";
    }
}
